package medicalSystem;

import java.util.ArrayList;

public class Doctor {
	String name;
	ArrayList<String> patients;

	public Doctor(String name) {
		super();
		this.name = name;
		this.patients = new ArrayList<String>();
		
	}

	public void submitPatientReport(String patientName){
		MedicalServer server = MedicalServer.getInstance(); 
		
	}
	
	public File createPrivatePatientFile(String fileName, String patientName){
		MedicalServer server = MedicalServer.getInstance(); 
		File f = server.createFile(fileName, "private", patientName);
		return f;
	}
	
	public File createPublicPatientFile(String fileName, String patientName){
		MedicalServer server = MedicalServer.getInstance(); 
		File f = server.createFile(fileName, "public", patientName);
		return f;

		
	}
	
	public void submitViolationReport(){
		
	}

	public void deleteFile(String patientName, String fileName){
		
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ArrayList<String> getPatients() {
		return patients;
	}

	public void setPatients(ArrayList<String> patients) {
		this.patients = patients;
	}
	
	public void addPatient(String patientName) {
		this.patients.add(patientName);
	}

	public void consultFile(String fileName, String patientName) {
		MedicalServer s = MedicalServer.getInstance();
		s.viewFile(getName(), fileName);
	}
	
	
	
}
